<?php
	/**
	*
	*/
	class UploadIMG_model extends Model
	{

		function __construct()
		{
			parent::__construct();
		}
		public function uploadIMG()
		{
			$error = array();

			$file = $this->f->validate_uploadIMG($_FILES["file"]);

			if ($file == false) $error[] = 'file';

			if(empty($error)) {
				move_uploaded_file($_FILES["file"]["tmp_name"],"public/img/" . $_FILES["file"]["name"]);
			}
   		}
	}
?>